import React from 'react'
import { useLocation } from 'react-router-dom'
// import qs from 'querystring'
// import { use} from 'react-router-dom'
function Test(props) {
  console.log(useLocation()) // react 路由的hooks
  console.log(props.location)
  // console.log(qs.parse(props.location.search.split('?')[1])) // { proid: ''}
  // const proid = qs.parse(props.location.search.split('?')[1])
  console.log(new URLSearchParams(props.location.search))
  const obj = new URLSearchParams(props.location.search)
  
  console.log(obj.get('proid'))

  return (
    <div>
      
    </div>
  )
}

export default Test
